﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SEO_Fiplist.aspx.cs" Inherits="Web.SEO_Fiplist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>过滤IP地址</title>
     <link href="css/Page.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table style="border: 1px solid #9abddd;" border="0" cellpadding="0" cellspacing="0"
        width="98%">
        <tr>
            <td class="TitleBar" colspan="5" align="center">
               过滤IP列表
            </td>
        </tr>
        
        <tr>
        
        
        <td class="Pager" colspan="2" style="padding-right: 30px; text-align:left; ">
                 &nbsp;&nbsp;&nbsp;&nbsp;
                     状态：
                    <asp:DropDownList ID="ddlStatus" runat="server" TabIndex="3">
                     <asp:ListItem Value="-1" Selected="True" >请选择</asp:ListItem>
                    <asp:ListItem Value="0" >锁定</asp:ListItem>
                       <asp:ListItem Value="1" >禁用</asp:ListItem>
                    </asp:DropDownList>
                   IP：<asp:TextBox ID="txtIP" runat="server"></asp:TextBox>
                    <asp:Button runat="server" ID="btn_search" Text="查询" 
                     onclick="btn_search_Click1" />
                 
                </td>
        
             
                 <td class="Pager"  colspan="3" style="padding-right: 10px; text-align:right; ">
                 <asp:Button runat="server" ID="btn_ok" Text="添加屏蔽IP"    Width="100px"   
                         style=" margin-right:30px;" onclick="btn_ok_Click" />
                     <asp:Button ID="btn_download" runat="server" Text="列表下载" 
                onclick="btn_download_Click" />
                  
                </td>
            </tr>
        
        
          <tr> 
           
                <td class="MenuItem" style=" text-align:center;" >
                    IP
                </td>
                 <td class="MenuItem" style=" text-align:center;">
                    屏蔽时间
                </td>
                <td class="MenuItem" style=" text-align:center;">操作次数</td>
                 <td class="MenuItem" style=" text-align:center;">状态</td>
                

                <td class="MenuItemRight" style=" text-align:center;" >
                    操作
                </td>
            </tr>
        
        <asp:Repeater ID="repeater" runat="server" OnItemCommand="repeater_ItemCommand">
            <ItemTemplate>
                <tr style='background-color: <%#(Container.ItemIndex%2==0)?"write":"#f5f5f5;"%>'>
                    <td class="RecordItem" style="text-align: center; width: 280px;">
                        <%#Eval("屏蔽IP")%></b>
                    </td>
                    <td class="RecordItem" style="text-align: center;">
                        <%#Eval("屏蔽时间")%></b>
                    </td>
                    <td class="RecordItem" style="text-align: center;">
                        <%#Eval("Donums")%></b>
                    </td>
                    <td class="RecordItem" style="text-align: center;">
                       &nbsp;<%#(int)Eval("Status") == 0 ? "锁定" : "禁用"%></b>
                          
                    </td>
                    
                    <td class="RecordItemRight" style="text-align: center; font-size: 12px;">
                      <asp:LinkButton runat="server" ID="elkb"  CommandName="edit" CommandArgument='<%#Eval("屏蔽IP")%>' Text='<%#(int)Eval("Status") == 0 ?"锁定":"禁用"%>'></asp:LinkButton>
                            <asp:LinkButton runat="server"  ID="lkb"  CommandArgument='<%#Eval("屏蔽IP")%>' CommandName="del" Text="删除" OnClientClick= "return   confirm( '您确认删除该记录吗? '); " style=" font-size:12px;" ></asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        
        <tr><td colspan="3"  align="center">
        
          
        
        </td></tr>
        
    </table>
    </div>
    </form>
</body>
</html>
